package com.beluga.mybatis.sqlInjector;

public enum BelugaSqlMethod {

    /**
     * insert 批量插入数据
     */
    INSERT_BATCH("insertBatch", "插入多条数据", "<script>\nINSERT IGNORE INTO %s %s VALUES %s\n</script>"),

    /**
     * 插入
     */
    INSERT_IGNORE_ONE("insertIgnore", "插入一条数据（选择字段插入），如果中已经存在相同的记录，则忽略当前新数据", "<script>\nINSERT IGNORE INTO %s %s VALUES %s\n</script>"),

    ;


    private final String method;
    private final String desc;
    private final String sql;

    BelugaSqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return method;
    }

    public String getDesc() {
        return desc;
    }

    public String getSql() {
        return sql;
    }
}